package com.example.hyw.szysteam.model;

import com.example.hyw.szysteam.POJO.HttpResult;
import com.example.hyw.szysteam.http.RetrofitManager;

import io.reactivex.Observable;

/**
 * Created by HYW on 2018/7/12.
 */

public class ScoreModel {
    public Observable<HttpResult<Integer>> setScore(String email,int testid,int score){
        return RetrofitManager.getInstance().getRetrofitApiService().setscore(email, testid, score);
    }

    public Observable<HttpResult<Integer>> getScore(String email,int testid){
        return RetrofitManager.getInstance().getRetrofitApiService().getscore(email, testid);
    }
}
